import spider_config


class ParkPlatform:
    def __init__(self, id) -> None:
        self.id: int = id
        self.name = ""

        if id == spider_config.su_park_id:
            self.name = "速停车"
        elif id == spider_config.etcp_park_id:
            self.name = "ETCP停车"
        elif id == spider_config.jie_park_id:
            self.name = "捷停车"
        elif id == spider_config.yima_park_id:
            self.name = "一码停车"
        elif id == spider_config.aiboke_park_id:
            self.name = "爱泊客停车"
        elif id == spider_config.ymiot_park_id:
            self.name = "云盟互联"
        elif id == spider_config.yun_park_id:
            self.name = "智慧停车云"
        elif id == spider_config.ydt_park_id:
            self.name = "一点停"
        elif id == spider_config.epark_park_id:
            self.name = "e泊车"
        elif id == spider_config.airun_park_id:
            self.name = "艾润停车王"
        else:
            raise Exception("ParkPlatform id error")
